﻿using System;
using DevExpress.XtraBars;
using UniMana.Data;
namespace UniMana.Win.Leadership
{
    public partial class FrmReportClass_Class_SubLevel : DevExpress.XtraEditors.XtraForm
    {
        public FrmReportClass_Class_SubLevel()
        {
            InitializeComponent();
            this.xucBar1.btnPrint_Click += 
                new UniMana.Utils.Controls.xucBar.ButtonClickHandler(
                this.btnPrint_Click);
        }
        private DBMain m_ReportClass_Level= new DBMain();
        private void ReportClass_Level_Load(object sender, EventArgs e)
        {
            grcClass_Level.DataSource = 
                m_ReportClass_Level.m_DCReadOnly.Training_Classes.GetReport_ClassByLevel(
                m_ReportClass_Level.m_DCReadOnly.Catalogue_Levels);
            cacClassLevel.DataSource = 
                m_ReportClass_Level.m_DCReadOnly.Training_Classes.GetReport_ClassByLevel(
                m_ReportClass_Level.m_DCReadOnly.Catalogue_Levels);
            cacClassLevel.Series[0].ArgumentDataMember = "Name";
            cacClassLevel.Series[0].TopNOptions.Enabled = true;
            cacClassLevel.Series[0].ArgumentDataMember = "Name";
            cacClassLevel.Series[0].Name = "Bậc Đào Tạo";
            cacClassLevel.Series[0].TopNOptions.Enabled = true;
            cacClassLevel.Series[0].ValueDataMembersSerializable = "Total";
        }
        private void btnPrint_Click(object sender, ItemClickEventArgs e)
        {
            compositeLink_HienThi.ShowPreviewDialog();
        }
    }
}